from peewee import *

from application.db import BaseMysqlModel, get_database_connection


class B(BaseMysqlModel):
    id = CharField(index=True)
    b_name = CharField(null=True)  # json

    class Meta:
        table_name = 'b'
        database = get_database_connection('default2')  # 使用默认数据库

